package com.lyh.test.service.impl;

import com.lyh.test.entity.Detail;
import com.lyh.test.mapper.DetailMapper;
import com.lyh.test.service.DetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DetailServiceImpl implements DetailService {
    @Autowired
    DetailMapper detailMapper;

    @Override
    public void addCost(Detail detail) {
        detailMapper.addCost(detail);
    }

    @Override
    public List<Detail> getList() {
        return detailMapper.getList();
    }

    @Override
    public Detail getById(Integer did) {
        return detailMapper.getById(did);
    }

}
